﻿--[[	$Id: warlock.lua 2958 2013-03-26 21:33:00Z sdkyron@gmail.com $	]]

if caelLib.playerClass ~= "WARLOCK" then return end

local _, gotMacros = ...

gM_Macros = {
	["T1"] = {
		body = [=[/cleartarget [exists]
			/assist [target=pet, exists]Pet
			/stopmacro [target=pettarget, exists]
			/targetenemy [target=pet, dead][target=pet, noexists]]=],
		class = "WARLOCK",
	},
	["TGT"] = {
		show = "[pet:Imp] Summon Imp; [pet:Voidwalker] Summon Voidwalker; Auto Attack",
		body = [=[/targetenemy [noexists][noharm][dead]
			/cast [nomodifier, nopet]Summon Imp; [modifier, nopet]Summon Voidwalker
			/petpassive [target=pettarget,exists]
			/stopmacro [target=pettarget,exists]
			/petattack]=],
		blizzmacro = true,
		perChar = true,
		class = "WARLOCK",
	},
	["SBolt"] = {
		show = "Shadow Bolt",
		body = [=[/click [noexists][noharm][dead] gotMacros_T1
			/click [combat, harm, nodead] gotMacros_CDsAll
			/cast [harm, nodead] Shadow Bolt]=],
		blizzmacro = true,
		perChar = true,
		class = "WARLOCK",
	},
	["DoTs"] = {
		show = "Corruption",
		body = [=[/click [noexists][noharm][dead] gotMacros_T1
			/click [combat, harm, nodead] gotMacros_CDsAll
			/castsequence reset=1/combat/target [harm, nodead] Agony, Corruption, Unstable Affliction]=],
		blizzmacro = true,
		perChar = true,
		class = "WARLOCK",
		spec = "1, 2, 3",
	},
}